Carbon


PBDTGetPath

Header: Files.h Carbon status: Supported

Gets the reference number of the specified desktop database. This function runs synchronously only.

OSErr PBDTGetPath (
    DTPBPtr paramBlock
);
paramBlock

A pointer to a desktop parameter block.

function result

A result code.

DISCUSSION

Clear all fields (other than input fields) in the parameter block that you pass to Desktop Manager functions. The relevant fields of the parameter block for this function are:

You specify the volume by passing a pointer to its name in the ioNamePtr field or a volume reference number in the ioVRefNum field. If the desktop database is not already open, PBDTGetPath opens it and then returns the reference number. If the desktop database doesn’t exist, PBDTGetPath creates it .

SPECIAL CONSIDERATIONS

Do not call PBDTGetPath at interrupt time—it allocates memory in the system heap.

AVAILABILITY

Supported in Carbon. Available in Mac OS 8.1 and later when Carbon 1.0.2 or later is present.


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)